package com.ljb.android.component.wxcode

import android.content.Context
import com.ljb.android.comm.weiget.page.PageStateLayout
import com.ljb.android.component.wxcode.common.WXCodeConstant

object WXCodeInit {

    fun init(context: Context) {
        initPage()
    }


    private fun initPage() {
        PageStateLayout.apply {
            setDefaultEmptyLayout(R.layout.wechat_layout_empty, WXCodeConstant.MODULE_NAME)
            setDefaultErrorLayout(R.layout.wechat_layout_error, WXCodeConstant.MODULE_NAME)
            setDefaultLoadLayout(R.layout.wechat_layout_loading, WXCodeConstant.MODULE_NAME)
        }
    }
}